package com.bosssoft.goods.domain.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;

/**
 * 商品添加数据对象
 * @author Fang_Sir
 * @date 2021-04-20
 */
@Getter
@Setter
@ToString
public class AddGoodVO {
    @ApiModelProperty("商品名称")
    @NotNull(message = "分类编号不得为空")
    private String name;

    @ApiModelProperty("品牌编号 ID")
    @NotNull(message = "品牌编号不得为空")
    @JsonProperty("brand_id")
    private Integer brandId;

    @ApiModelProperty("品牌分类编号 ID")
    @NotNull(message = "品牌分类编号不得为空")
    @JsonProperty("brand_cat")
    private Integer brandCat;

    @ApiModelProperty("商品库存")
    @NotNull(message = "商品库存不得为空")
    private Integer stock;

    @ApiModelProperty("商品价格")
    @NotNull(message = "商品价格不得为空")
    private Double price;

    @ApiModelProperty("商品描述")
    private String content;

    @ApiModelProperty("商品分类编号数组")
    @NotNull(message = "商品分类编号数组不得为空")
    @JsonProperty("cat_arr")
    private Integer[] catArr;

    @ApiModelProperty("商品图片")
    private String[] pics;

}
